package com.ctrip.ec.api.admin.model.after;

import com.ctrip.ec.biz.entity.after.AfterSalesEntity;
import com.ctrip.ec.biz.entity.order.OrderEntity;
import com.ctrip.ec.biz.entity.order.OrderGoodsEntity;

/**
 * Created by jiangzy on 2018/11/29.
 */
public class AfterSalesModel extends AfterSalesEntity {
    public AfterSalesModel(){ }
    public AfterSalesModel(AfterSalesEntity entity){
        for(String col : entity.property().getColumns()){
            this.fieldValue(col,entity.fieldValue(col));
        }
    }

    private OrderEntity order;

    private OrderGoodsEntity orderGoods;

    public OrderGoodsEntity getOrderGoods() {
        return orderGoods;
    }

    public void setOrderGoods(OrderGoodsEntity orderGoods) {
        this.orderGoods = orderGoods;
    }

    public OrderEntity getOrder() {
        return order;
    }

    public void setOrder(OrderEntity order) {
        this.order = order;
    }
}
